<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page import="kr.co.insoft.framework.config.Authorities" %>
<c:set var="CONTEXT">${pageContext.request.contextPath}</c:set>
<c:set var="cssUrl">${pageContext.request.contextPath}/resources/css</c:set>
<c:set var="imgUrl">${pageContext.request.contextPath}/resources/images</c:set>
<c:set var="jsUrl">${pageContext.request.contextPath}/resources/js</c:set>
<form:form modelAttribute="compositeEntityModel" role="form" action="" method="post" class="form-horizontal">
	<form:input type="hidden" path="serviceid"/>
	<div class="form-group">
		<label for="projectName" class="col-sm-2 control-label">상위 서비스</label>
		<div class="col-sm-10">${compositeEntityModel.service.serviceName }</div>
	</div>
	<div class="form-group">
		<label for="compositeName" class="col-sm-2 control-label">VM Composite Name</label>
		<div class="col-sm-10">
			<form:input path="compositeName" required="required" cssClass="form-control" placeholder="서비스명" />
		</div>
	</div>
	<div class="form-group">
		<label for="compositeHatype" class="col-sm-2 control-label">VM Composite Name</label>
		<div class="col-sm-10">
			<form:select path="compositeHatype" cssClass="form-control">
				<form:options items="${hatypes }" itemValue="val" itemLabel="desc"/>
			</form:select>
		</div>
	</div>
	<div class="form-group">
		<label for="compositeDesc" class="col-sm-2 control-label">VM Composite Desc</label>
		<div class="col-sm-10">
			<form:input path="compositeDesc" required="required" cssClass="form-control" placeholder="서비스명" />
		</div>
	</div>
	<div class="form-group">
		<label for="inputPassword3" class="col-sm-2 control-label">환경변수</label>
		<div class="col-sm-10">
			<div class="col-sm-12 text-right"><button type="button" class="btn btn-default btnSubPageAddVariable">환경 변수 추가</button></div>
			<input type="hidden" id="variableTemp" name="variableTemp"/>
			<div class="col-sm-12 panel-group" id="variablesArea"></div>
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button class="btn btn-primary btnSubPageCreate" data-types="vmcomposite" type="button">생성</button>
		</div>
	</div>
</form:form>